<%-- 
    Document   : pertanyaan_baki_akaun
    Created on : Aug 9, 2012, 2:12:47 PM
    Author     : ubuntu
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Pertanyaan Baki Akaun</title>
        <script type="text/javascript">
            $(document).ready(function(){
                $('#noAkaunDari').change(function(){                    
                    var url = '${pageContext.request.contextPath}/deposit?getNoKP' ;
                    $.get(url, 
                    {
                        noAkaun:$(this).val()
                    }, 
                    function(data){
                        $('#noKpDari').val(data);
                    }, "text");
                });
            });
            
            
        </script>
    </head>
    <body>
        <s:form beanclass="th.stripes.action.DepositActionBean" class="niceform">
           
            <s:hidden name="deposit.noAkaun" id="noAkaun"></s:hidden>
            <s:hidden name="deposit.noKp" id="noKP"></s:hidden>
           
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Pertanyaan Baki Akaun
                </h3>
               
                <s:errors/>
               <p>
                    <label>No. Akaun TH :</label>
                    <s:select name="deposit.noAkaunDari" class="required" id="noAkaunDari">
                        <s:option value="">Sila Pilih</s:option>
                        <c:forEach items="${actionBean.accountList}" var="item">
                            <s:option value="${item.akaunTmbhn}">${item.akaunTmbhn}</s:option>
                        </c:forEach>
                    </s:select>
                </p>   
                 <p>
                    <label>No. KP Semasa :</label>
                        <s:text name="deposit.noKpDari" id="noKpDari" readonly="true"/>
                    
                </p>
                <p align="center">
                       <s:submit name="checkBalance" value="Semak" class="button green button_blockUI"/>                    
                </p>                
            </div>
        </s:form>
    </body>
</html>
